<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>TechBlog - Github风格技术博客</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            /* 亮色主题变量 */
            --bg-color: #ffffff;
            --text-color: #24292f;
            --border-color: #d0d7de;
            --card-bg: #f6f8fa;
            --header-bg: #f6f8fa;
            --accent-color: #0969da;
            --accent-hover: #0550ae;
            --code-bg: rgba(175, 184, 193, 0.2);
            --shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
            --tag-bg: #ddf4ff;
            --tag-color: #0969da;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --danger-color: #dc3545;
        }

        .dark-theme {
            /* 深色主题变量 */
            --bg-color: #0d1117;
            --text-color: #e6edf3;
            --border-color: #30363d;
            --card-bg: #161b22;
            --header-bg: #161b22;
            --accent-color: #2f81f7;
            --accent-hover: #1c6bdb;
            --code-bg: rgba(110, 118, 129, 0.4);
            --shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.7);
            --tag-bg: #388bfd26;
            --tag-color: #58a6ff;
            --success-color: #3fb950;
            --warning-color: #d29922;
            --danger-color: #f85149;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: background-color 0.3s, color 0.3s, border-color 0.3s;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.5;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* 头部导航 */
        header {
            background-color: var(--header-bg);
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
            position: relative;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
            font-size: 20px;
            color: var(--text-color);
            text-decoration: none;
            z-index: 101;
        }

        .logo i {
            color: var(--accent-color);
        }

        .nav-links {
            display: flex;
            gap: 24px;
        }

        .nav-links a {
            color: var(--text-color);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .nav-links a:hover {
            color: var(--accent-color);
        }

        .nav-links a.active {
            color: var(--accent-color);
            font-weight: 600;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .theme-toggle {
            background: none;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 8px 12px;
            color: var(--text-color);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            transition: all 0.2s ease;
        }

        .theme-toggle:hover {
            background-color: var(--code-bg);
        }

        .login-btn {
            background-color: var(--accent-color);
            color: white;
            border: none;
            border-radius: 6px;
            padding: 8px 16px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s ease;
        }

        .login-btn:hover {
            background-color: var(--accent-hover);
            transform: translateY(-1px);
        }

        .mobile-menu {
            display: none;
            background: none;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            color: var(--text-color);
            cursor: pointer;
            padding: 8px 12px;
            font-size: 16px;
            transition: all 0.2s ease;
        }

        .mobile-menu:hover {
            background-color: var(--code-bg);
        }

        /* 英雄区域 */
        .hero-section {
            padding: 80px 0;
            text-align: center;
            border-bottom: 1px solid var(--border-color);
            background: linear-gradient(135deg, var(--header-bg) 0%, var(--bg-color) 100%);
            position: relative;
            overflow: hidden;
        }

        .hero-content h1 {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 16px;
            background: linear-gradient(90deg, var(--accent-color), #6f42c1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-content p {
            font-size: 20px;
            max-width: 700px;
            margin: 0 auto 32px;
            opacity: 0.8;
        }

        .hero-actions {
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-bottom: 40px;
        }

        .btn {
            padding: 12px 24px;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary {
            background-color: var(--accent-color);
            color: white;
            border: none;
        }

        .btn-primary:hover {
            background-color: var(--accent-hover);
            transform: translateY(-2px);
        }

        .btn-secondary {
            background-color: var(--code-bg);
            color: var(--text-color);
            border: 1px solid var(--border-color);
        }

        .btn-secondary:hover {
            background-color: var(--border-color);
            transform: translateY(-2px);
        }

        .hero-stats {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-top: 40px;
            flex-wrap: wrap;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .stat-value {
            font-size: 36px;
            font-weight: 700;
            color: var(--accent-color);
        }

        .stat-label {
            font-size: 14px;
            opacity: 0.8;
        }

        /* 主要内容区域 */
        .main-content {
            display: flex;
            flex-direction: column;
            gap: 60px;
            padding: 60px 0;
        }

        /* 内容区块标题 */
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }

        .section-header h2 {
            font-size: 28px;
            font-weight: 600;
        }

        .view-all {
            color: var(--accent-color);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .view-all:hover {
            text-decoration: underline;
        }

        /* 内容网格布局 */
        .content-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 24px;
        }

        /* 内容卡片 */
        .content-card {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            overflow: hidden;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
        }

        .content-card:hover {
            border-color: var(--accent-color);
            transform: translateY(-4px);
            box-shadow: var(--shadow);
        }

        .card-image {
            width: 100%;
            height: 160px;
            object-fit: cover;
            border-bottom: 1px solid var(--border-color);
        }

        .card-content {
            padding: 20px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .card-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .card-title a {
            color: var(--text-color);
            text-decoration: none;
        }

        .card-title a:hover {
            color: var(--accent-color);
        }

        .card-meta {
            display: flex;
            gap: 12px;
            margin-bottom: 12px;
            font-size: 13px;
            color: var(--text-color);
            opacity: 0.7;
        }

        .card-description {
            font-size: 14px;
            line-height: 1.5;
            margin-bottom: 16px;
            flex: 1;
        }

        .card-tags {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .tag {
            background-color: var(--tag-bg);
            color: var(--tag-color);
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 500;
        }

        /* 特色内容区域 */
        .featured-section {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 24px;
        }

        .featured-card {
            grid-column: 1 / 2;
            display: flex;
            flex-direction: column;
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            overflow: hidden;
        }

        .featured-card-large {
            grid-column: 1 / 3;
        }

        .featured-image {
            width: 100%;
            height: 240px;
            object-fit: cover;
        }

        .featured-content {
            padding: 24px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .featured-title {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .featured-title a {
            color: var(--text-color);
            text-decoration: none;
        }

        .featured-title a:hover {
            color: var(--accent-color);
        }

        .featured-meta {
            display: flex;
            gap: 16px;
            margin-bottom: 12px;
            font-size: 14px;
            color: var(--text-color);
            opacity: 0.7;
        }

        .featured-description {
            font-size: 16px;
            line-height: 1.6;
            margin-bottom: 16px;
            flex: 1;
        }

        .read-more {
            color: var(--accent-color);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            align-self: flex-start;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .read-more:hover {
            text-decoration: underline;
            gap: 8px;
        }

        /* 侧边栏 */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .sidebar-card {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 20px;
        }

        .sidebar-card h3 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 16px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border-color);
        }

        .trending-list,
        .popular-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .trending-item,
        .popular-item {
            display: flex;
            gap: 12px;
            padding: 8px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .trending-item:last-child,
        .popular-item:last-child {
            border-bottom: none;
        }

        .item-number {
            font-size: 18px;
            font-weight: 700;
            color: var(--accent-color);
            min-width: 24px;
        }

        .item-content {
            flex: 1;
        }

        .item-title {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 4px;
        }

        .item-title a {
            color: var(--text-color);
            text-decoration: none;
        }

        .item-title a:hover {
            color: var(--accent-color);
        }

        .item-meta {
            font-size: 12px;
            color: var(--text-color);
            opacity: 0.7;
        }

        /* 社区动态区域 */
        .community-section {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 32px;
        }

        .community-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }

        .community-title {
            font-size: 24px;
            font-weight: 600;
        }

        .community-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }

        .community-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            border-radius: 6px;
            transition: background-color 0.2s ease;
        }

        .community-item:hover {
            background-color: var(--code-bg);
        }

        .community-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid var(--border-color);
            object-fit: cover;
        }

        .community-info {
            flex: 1;
        }

        .community-name {
            font-weight: 500;
            margin-bottom: 2px;
        }

        .community-action {
            font-size: 13px;
            opacity: 0.7;
        }

        /* 技术栈展示 */
        .tech-stack {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            justify-content: center;
            margin-top: 20px;
        }

        .tech-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 16px;
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            transition: all 0.2s ease;
        }

        .tech-item:hover {
            transform: translateY(-2px);
            border-color: var(--accent-color);
        }

        .tech-icon {
            font-size: 32px;
            color: var(--accent-color);
        }

        .tech-name {
            font-size: 14px;
            font-weight: 500;
        }

        /* 页脚 */
        footer {
            border-top: 1px solid var(--border-color);
            padding: 60px 0 40px;
            background-color: var(--header-bg);
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-column h3 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .footer-links a {
            color: var(--text-color);
            text-decoration: none;
            font-size: 14px;
            transition: color 0.2s ease;
        }

        .footer-links a:hover {
            color: var(--accent-color);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid var(--border-color);
            font-size: 14px;
            color: var(--text-color);
            opacity: 0.8;
        }

        /* 响应式设计优化 */
        @media (max-width: 1024px) {
            .featured-section {
                grid-template-columns: 1fr;
            }

            .featured-card-large {
                grid-column: 1 / 2;
            }

            .content-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 16px;
            }

            .navbar {
                padding: 12px 0;
            }

            .logo {
                font-size: 18px;
            }

            .nav-links {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: var(--header-bg);
                border-top: 1px solid var(--border-color);
                flex-direction: column;
                padding: 16px 20px;
                display: none;
                box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            }

            .nav-links.active {
                display: flex;
            }

            .nav-links a {
                padding: 12px 0;
                border-bottom: 1px solid var(--border-color);
                font-size: 16px;
            }

            .nav-links a:last-child {
                border-bottom: none;
            }

            .mobile-menu {
                display: block;
                min-height: 44px;
                min-width: 44px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .theme-toggle,
            .mobile-menu,
            .login-btn {
                padding: 10px 14px;
            }

            .hero-section {
                padding: 60px 0;
            }

            .hero-content h1 {
                font-size: 36px;
            }

            .hero-content p {
                font-size: 18px;
            }

            .hero-actions {
                flex-direction: column;
                align-items: center;
            }

            .hero-stats {
                flex-direction: column;
                gap: 20px;
            }

            .main-content {
                padding: 40px 0;
                gap: 40px;
            }

            .section-header h2 {
                font-size: 24px;
            }

            .content-grid {
                grid-template-columns: 1fr;
            }

            .featured-title {
                font-size: 20px;
            }

            .featured-image {
                height: 200px;
            }

            .community-grid {
                grid-template-columns: 1fr;
            }

            /* 减少移动端的动画效果 */
            * {
                transition: none;
            }

            /* 保留必要的过渡 */
            .theme-toggle,
            .mobile-menu,
            .nav-links a,
            .login-btn,
            .read-more,
            .btn {
                transition: all 0.2s ease;
            }
        }

        @media (max-width: 480px) {
            .hero-content h1 {
                font-size: 28px;
            }

            .hero-content p {
                font-size: 16px;
            }

            .container {
                padding: 0 12px;
            }

            .card-content,
            .featured-content {
                padding: 16px;
            }

            .footer-content {
                grid-template-columns: 1fr;
                gap: 30px;
            }
        }
    </style>
</head>

<body class="light-theme">
    <header>
        <div class="container">
            <nav class="navbar">
                <a href="index.html" class="logo">
                    <i class="fas fa-code"></i>
                    TechBlog
                </a>

                <div class="nav-links">
                    <a href="index.html" class="active">首页</a>
                    <a href="article-list.html">文章</a>
                    <a href="tutorial-list.html">教程</a>
                    <a href="projects.html">项目</a>
                    <a href="about.html">关于</a>
                </div>

                <div class="nav-actions">
                    <button class="theme-toggle" id="themeToggle">
                        <i class="fas fa-moon"></i>
                        <span>深色模式</span>
                    </button>
                    <a href="login.html" class="login-btn">
                        <i class="fas fa-sign-in-alt"></i>
                        <span>登录</span>
                    </a>
                    <button class="mobile-menu" id="mobileMenu">
                        <i class="fas fa-bars"></i>
                    </button>
                </div>
            </nav>
        </div>
    </header>

    <!-- 英雄区域 -->
    <section class="hero-section">
        <div class="container">
            <div class="hero-content">
                <h1>探索技术的无限可能</h1>
                <p>TechBlog 是一个专注于现代Web技术的开源博客平台，分享前沿技术、实用教程和项目经验</p>
                <div class="hero-actions">
                    <a href="article-list.html" class="btn btn-primary">
                        <i class="fas fa-book-open"></i> 阅读文章
                    </a>
                    <a href="tutorial-list.html" class="btn btn-secondary">
                        <i class="fas fa-graduation-cap"></i> 学习教程
                    </a>
                </div>
                <div class="hero-stats">
                    <div class="stat-item">
                        <span class="stat-value">120+</span>
                        <span class="stat-label">技术文章</span>
                    </div>
                    <div class="stat-item">
                        <span class="stat-value">50+</span>
                        <span class="stat-label">实用教程</span>
                    </div>
                    <div class="stat-item">
                        <span class="stat-value">30+</span>
                        <span class="stat-label">开源项目</span>
                    </div>
                    <div class="stat-item">
                        <span class="stat-value">8年</span>
                        <span class="stat-label">开发经验</span>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <div class="container">
        <div class="main-content">
            <!-- 最新文章区域 -->
            <section>
                <div class="section-header">
                    <h2>最新文章</h2>
                    <a href="article-list.html" class="view-all">
                        查看全部 <i class="fas fa-arrow-right"></i>
                    </a>
                </div>
                <div class="content-grid">
                    <article class="content-card">
                        <img src="https://images.unsplash.com/photo-1633356122544-f134324a6cee?ixlib=rb-4.0.3&auto=format&fit=crop&w=1170&q=80"
                            alt="React文章" class="card-image">
                        <div class="card-content">
                            <h3 class="card-title"><a href="#">深入理解React Hooks的工作原理</a></h3>
                            <div class="card-meta">
                                <span><i class="far fa-calendar"></i> 2023-10-15</span>
                                <span><i class="far fa-clock"></i> 8分钟阅读</span>
                            </div>
                            <p class="card-description">本文将深入探讨React Hooks的内部实现机制，包括useState、useEffect等常用Hook的工作原理。</p>
                            <div class="card-tags">
                                <span class="tag">React</span>
                                <span class="tag">JavaScript</span>
                                <span class="tag">前端</span>
                            </div>
                        </div>
                    </article>

                    <article class="content-card">
                        <img src="https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1170&q=80"
                            alt="Node.js文章" class="card-image">
                        <div class="card-content">
                            <h3 class="card-title"><a href="#">Node.js性能优化指南</a></h3>
                            <div class="card-meta">
                                <span><i class="far fa-calendar"></i> 2023-10-10</span>
                                <span><i class="far fa-clock"></i> 10分钟阅读</span>
                            </div>
                            <p class="card-description">探讨Node.js应用程序的性能优化策略，包括内存管理、异步编程最佳实践和性能分析工具。</p>
                            <div class="card-tags">
                                <span class="tag">Node.js</span>
                                <span class="tag">后端</span>
                                <span class="tag">性能优化</span>
                            </div>
                        </div>
                    </article>

                    <article class="content-card">
                        <img src="https://images.unsplash.com/photo-1627398242454-45a1465c2479?ixlib=rb-4.0.3&auto=format&fit=crop&w=1170&q=80"
                            alt="CSS文章" class="card-image">
                        <div class="card-content">
                            <h3 class="card-title"><a href="#">使用CSS Grid构建现代响应式布局</a></h3>
                            <div class="card-meta">
                                <span><i class="far fa-calendar"></i> 2023-10-05</span>
                                <span><i class="far fa-clock"></i> 6分钟阅读</span>
                            </div>
                            <p class="card-description">介绍如何使用Grid创建复杂的响应式布局，并分享一些实用技巧和最佳实践。</p>
                            <div class="card-tags">
                                <span class="tag">CSS</span>
                                <span class="tag">布局</span>
                                <span class="tag">响应式设计</span>
                            </div>
                        </div>
                    </article>
                </div>
            </section>

            <!-- 特色内容区域 -->
            <section>
                <div class="section-header">
                    <h2>特色内容</h2>
                </div>
                <div class="featured-section">
                    <article class="featured-card featured-card-large">
                        <img src="https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1170&q=80"
                            alt="特色内容" class="featured-image">
                        <div class="featured-content">
                            <h2 class="featured-title"><a href="#">全栈开发者的成长之路：从入门到专家</a></h2>
                            <div class="featured-meta">
                                <span><i class="far fa-calendar"></i> 2023-09-28</span>
                                <span><i class="far fa-clock"></i> 15分钟阅读</span>
                                <span><i class="far fa-eye"></i> 2.5k浏览</span>
                            </div>
                            <p class="featured-description">
                                这篇文章将分享我作为一名全栈开发者8年来的成长经历，包括技术学习路径、项目经验积累、职业发展建议等。无论你是刚入门的新手还是有一定经验的开发者，都能从中获得启发。
                            </p>
                            <a href="#" class="read-more">阅读全文 <i class="fas fa-arrow-right"></i></a>
                        </div>
                    </article>

                    <aside class="sidebar">
                        <div class="sidebar-card">
                            <h3>热门文章</h3>
                            <div class="popular-list">
                                <div class="popular-item">
                                    <div class="item-number">1</div>
                                    <div class="item-content">
                                        <h4 class="item-title"><a href="#">JavaScript ES2023新特性解析</a></h4>
                                        <div class="item-meta">1.2k浏览 · 前端</div>
                                    </div>
                                </div>
                                <div class="popular-item">
                                    <div class="item-number">2</div>
                                    <div class="item-content">
                                        <h4 class="item-title"><a href="#">TypeScript最佳实践指南</a></h4>
                                        <div class="item-meta">980浏览 · TypeScript</div>
                                    </div>
                                </div>
                                <div class="popular-item">
                                    <div class="item-number">3</div>
                                    <div class="item-content">
                                        <h4 class="item-title"><a href="#">Docker容器化部署实战</a></h4>
                                        <div class="item-meta">850浏览 · DevOps</div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="sidebar-card">
                            <h3>趋势标签</h3>
                            <div class="card-tags">
                                <span class="tag">React</span>
                                <span class="tag">Node.js</span>
                                <span class="tag">TypeScript</span>
                                <span class="tag">Vue</span>
                                <span class="tag">CSS</span>
                                <span class="tag">性能优化</span>
                                <span class="tag">算法</span>
                                <span class="tag">数据库</span>
                            </div>
                        </div>
                    </aside>
                </div>
            </section>

            <!-- 最新教程区域 -->
            <section>
                <div class="section-header">
                    <h2>最新教程</h2>
                    <a href="tutorial-list.html" class="view-all">
                        查看全部 <i class="fas fa-arrow-right"></i>
                    </a>
                </div>
                <div class="content-grid">
                    <article class="content-card">
                        <img src="https://images.unsplash.com/photo-1633356122544-f134324a6cee?ixlib=rb-4.0.3&auto=format&fit=crop&w=1170&q=80"
                            alt="React教程" class="card-image">
                        <div class="card-content">
                            <h3 class="card-title"><a href="#">React入门教程：从零开始构建你的第一个应用</a></h3>
                            <div class="card-meta">
                                <span><i class="far fa-calendar"></i> 2023-10-12</span>
                                <span><i class="far fa-clock"></i> 45分钟</span>
                            </div>
                            <p class="card-description">适合React初学者，通过实际项目带你了解React的基本概念，包括组件、状态和属性。</p>
                            <div class="card-tags">
                                <span class="tag">React</span>
                                <span class="tag">教程</span>
                                <span class="tag">入门</span>
                            </div>
                        </div>
                    </article>

                    <article class="content-card">
                        <img src="https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1170&q=80"
                            alt="Git教程" class="card-image">
                        <div class="card-content">
                            <h3 class="card-title"><a href="#">Git高级技巧：分支策略与团队协作</a></h3>
                            <div class="card-meta">
                                <span><i class="far fa-calendar"></i> 2023-10-08</span>
                                <span><i class="far fa-clock"></i> 30分钟</span>
                            </div>
                            <p class="card-description">学习Git分支管理的最佳实践，包括Git Flow工作流、解决合并冲突的技巧。</p>
                            <div class="card-tags">
                                <span class="tag">Git</span>
                                <span class="tag">版本控制</span>
                                <span class="tag">团队协作</span>
                            </div>
                        </div>
                    </article>

                    <article class="content-card">
                        <img src="https://images.unsplash.com/photo-1627398242454-45a1465c2479?ixlib=rb-4.0.3&auto=format&fit=crop&w=1170&q=80"
                            alt="CSS教程" class="card-image">
                        <div class="card-content">
                            <h3 class="card-title"><a href="#">现代CSS布局：Flexbox与Grid实战指南</a></h3>
                            <div class="card-meta">
                                <span><i class="far fa-calendar"></i> 2023-10-03</span>
                                <span><i class="far fa-clock"></i> 40分钟</span>
                            </div>
                            <p class="card-description">掌握现代CSS布局技术，从基础概念到实际应用，创建响应式、灵活的网页设计。</p>
                            <div class="card-tags">
                                <span class="tag">CSS</span>
                                <span class="tag">布局</span>
                                <span class="tag">Flexbox</span>
                            </div>
                        </div>
                    </article>
                </div>
            </section>

            <!-- 技术栈展示 -->
            <section>
                <div class="section-header">
                    <h2>核心技术栈</h2>
                </div>
                <div class="tech-stack">
                    <div class="tech-item">
                        <i class="fab fa-react tech-icon"></i>
                        <span class="tech-name">React</span>
                    </div>
                    <div class="tech-item">
                        <i class="fab fa-vuejs tech-icon"></i>
                        <span class="tech-name">Vue.js</span>
                    </div>
                    <div class="tech-item">
                        <i class="fab fa-node-js tech-icon"></i>
                        <span class="tech-name">Node.js</span>
                    </div>
                    <div class="tech-item">
                        <i class="fab fa-python tech-icon"></i>
                        <span class="tech-name">Python</span>
                    </div>
                    <div class="tech-item">
                        <i class="fab fa-docker tech-icon"></i>
                        <span class="tech-name">Docker</span>
                    </div>
                    <div class="tech-item">
                        <i class="fab fa-git-alt tech-icon"></i>
                        <span class="tech-name">Git</span>
                    </div>
                </div>
            </section>

            <!-- 社区动态 -->
            <section>
                <div class="section-header">
                    <h2>社区动态</h2>
                </div>
                <div class="community-section">
                    <div class="community-header">
                        <h3 class="community-title">最新活动</h3>
                        <a href="#" class="view-all">查看全部 <i class="fas fa-arrow-right"></i></a>
                    </div>
                    <div class="community-grid">
                        <div class="community-item">
                            <img src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?ixlib=rb-4.0.3&auto=format&fit=crop&w=100&q=80"
                                alt="用户头像" class="community-avatar">
                            <div class="community-info">
                                <div class="community-name">张明</div>
                                <div class="community-action">发布了新文章</div>
                            </div>
                            <span class="time">2小时前</span>
                        </div>
                        <div class="community-item">
                            <img src="https://images.unsplash.com/photo-1728577740843-5f29c7586afe?ixlib=rb-4.0.3&auto=format&fit=crop&w=100&q=80"
                                alt="用户头像" class="community-avatar">
                            <div class="community-info">
                                <div class="community-name">李华</div>
                                <div class="community-action">评论了文章</div>
                            </div>
                            <span class="time">5小时前</span>
                        </div>
                        <div class="community-item">
                            <img src="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-4.0.3&auto=format&fit=crop&w=100&q=80"
                                alt="用户头像" class="community-avatar">
                            <div class="community-info">
                                <div class="community-name">王强</div>
                                <div class="community-action">创建了新项目</div>
                            </div>
                            <span class="time">1天前</span>
                        </div>
                        <div class="community-item">
                            <img src="https://images.unsplash.com/photo-1438761681033-6461ffad8d80?ixlib=rb-4.0.3&auto=format&fit=crop&w=100&q=80"
                                alt="用户头像" class="community-avatar">
                            <div class="community-info">
                                <div class="community-name">赵雪</div>
                                <div class="community-action">回答了问题</div>
                            </div>
                            <span class="time">2天前</span>
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </div>

    <footer>
        <div class="container">
            <div class="footer-content">
                <div class="footer-column">
                    <h3>关于我们</h3>
                    <div class="footer-links">
                        <a href="#">团队介绍</a>
                        <a href="#">发展历程</a>
                        <a href="#">加入我们</a>
                        <a href="#">联系方式</a>
                    </div>
                </div>
                <div class="footer-column">
                    <h3>内容分类</h3>
                    <div class="footer-links">
                        <a href="#">前端开发</a>
                        <a href="#">后端开发</a>
                        <a href="#">移动开发</a>
                        <a href="#">人工智能</a>
                    </div>
                </div>
                <div class="footer-column">
                    <h3>资源链接</h3>
                    <div class="footer-links">
                        <a href="#">技术文档</a>
                        <a href="#">开源项目</a>
                        <a href="#">学习路线</a>
                        <a href="#">工具推荐</a>
                    </div>
                </div>
                <div class="footer-column">
                    <h3>关注我们</h3>
                    <div class="footer-links">
                        <a href="#"><i class="fab fa-github"></i> GitHub</a>
                        <a href="#"><i class="fab fa-weibo"></i> 微博</a>
                        <a href="#"><i class="fab fa-zhihu"></i> 知乎</a>
                        <a href="#"><i class="fas fa-rss"></i> RSS订阅</a>
                    </div>
                </div>
            </div>
            <div class="footer-bottom">
                <p>&copy; 2023 TechBlog 技术博客. 保留所有权利. | 由开源驱动</p>
            </div>
        </div>
    </footer>

    <script>
        // 主题切换功能
        const themeToggle = document.getElementById('themeToggle');
        const themeIcon = themeToggle.querySelector('i');
        const themeText = themeToggle.querySelector('span');

        themeToggle.addEventListener('click', () => {
            document.body.classList.toggle('dark-theme');
            document.body.classList.toggle('light-theme');

            if (document.body.classList.contains('dark-theme')) {
                themeIcon.className = 'fas fa-sun';
                themeText.textContent = '浅色模式';
            } else {
                themeIcon.className = 'fas fa-moon';
                themeText.textContent = '深色模式';
            }
        });

        // 移动端菜单切换
        const mobileMenu = document.getElementById('mobileMenu');
        const navLinks = document.querySelector('.nav-links');

        mobileMenu.addEventListener('click', () => {
            navLinks.classList.toggle('active');

            // 切换菜单图标
            const icon = mobileMenu.querySelector('i');
            if (navLinks.classList.contains('active')) {
                icon.className = 'fas fa-times';
            } else {
                icon.className = 'fas fa-bars';
            }
        });

        // 点击菜单外区域关闭移动菜单
        document.addEventListener('click', (e) => {
            if (!e.target.closest('.navbar') && navLinks.classList.contains('active')) {
                navLinks.classList.remove('active');
                mobileMenu.querySelector('i').className = 'fas fa-bars';
            }
        });

        // 平滑滚动到锚点
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();

                const targetId = this.getAttribute('href');
                if (targetId === '#') return;

                const targetElement = document.querySelector(targetId);
                if (targetElement) {
                    window.scrollTo({
                        top: targetElement.offsetTop - 80,
                        behavior: 'smooth'
                    });

                    // 关闭移动菜单（如果打开）
                    if (navLinks.classList.contains('active')) {
                        navLinks.classList.remove('active');
                        mobileMenu.querySelector('i').className = 'fas fa-bars';
                    }
                }
            });
        });

        // 添加滚动效果
        window.addEventListener('scroll', () => {
            const header = document.querySelector('header');
            if (window.scrollY > 100) {
                header.style.boxShadow = '0 2px 10px rgba(0, 0, 0, 0.1)';
            } else {
                header.style.boxShadow = 'none';
            }
        });
    </script>
</body>

</html>